home *** CD-ROM | disk | FTP | other *** search
- .TH SAVE
- 6 "IRIT Version 6.0"
- .SH NAME
- SAVE
-
-
-
- SAVE( StringType FileName, AnyType Object )
-
- Saves the provided Object in the specified file name FileName.
- No extension type is needed (ignored if specified), and ".dat" is supplied
- by default. Object can be any object type, including list, in which
- structure is saved recursively. See also LOAD. If a display device is
- actively running at the time SAVE is invoked, its transformation matrix
- will be saved with the same name but with extension type of ".mat" instead
- of ".dat".
-
- This command can also be used to save binary files. Ascii regular data
- files are usually loaded in much more time then binary files due the
- the parsing required. Binary data files can be loaded directly like ascii
- files in IRIT, but must be inspected through IRIT tools such
- as dat2irit. A binary data file must have a ".bdt" (Binary DaTa) type in
- its name.
-
- Under unix, files will be saved compressed if the given file name has
- a postfix of ".Z". The unix system's "compress" will be invoked via a pipe
- for that purpose.
-
- Example:
-
- SAVE( "Obj1.bdt.Z", Obj1 );
-
- Saves Obj1 in the file Obj1.bdt.Z as compressed binary file.
-